<template>
  <swiper class="banner-swiper" :options="swiperOption" ref="mySwiper" @someSwiperEvent="callback">
    <!-- slides -->
    <swiper-slide>
      <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1524547760058&di=1f665b70fbc7ca597b7118f1173e87e0&imgtype=0&src=http%3A%2F%2Fpic.linecg.com%2Fuploads%2Fae%2F240454%2F20160629%2F240454_1467208562_325.png" alt="">
    </swiper-slide>
    <swiper-slide>
      <img src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1524547657861&di=52d3e28cba1c2b329ffcf1c29fd207e1&imgtype=0&src=http%3A%2F%2Fpic.pptbz.com%2F201408%2F2014112150259421.JPG" alt="">
    </swiper-slide>
  </swiper>
</template>
<script> 
import { swiper, swiperSlide } from 'vue-awesome-swiper'
export default {
  data() {
    return {
      swiperOption: {
        autoplay:true,
        effect : 'fade',
        loop : true,
      }
    }
  },
  computed: {
    swiper() {
      return this.$refs.mySwiper.swiper
    }
  },
  components:{
    swiper,
    swiperSlide
  },
  mounted(){
    
  },
  methods:{
    callback(){

    }
  }
}
</script>
<style scoped>
.banner-swiper{
  height:780px;
  width:100%;
  min-width:1200px;
}
.banner-swiper img{
  width:100%;
  height:780px;
}
</style>

